import http from '@/utils/fetch'

/**
 * 增值服务
 */
// 购买信息
export function buyInfo(type) {
  return http.get('/Supplier/IncrementService/buyInfo', { type })
}
// 去购买
export function toBuy(params) {
  return http.post('/Supplier/IncrementService/toBuy', params, true)
}
// 自动充值信息
export function autoRechargeInfo(type) {
  return http.get('/Supplier/IncrementService/autoRechargeInfo', { type })
}
// 自动充值
export function autoRecharge(params) {
  return http.post('/Supplier/IncrementService/autoRecharge', params, true)
}
// 短信提醒
export function smsRemind() {
  return http.get('/Supplier/IncrementService/smsRemind')
}
// 获取单个短信信息
export function singleSmsInfo(sms_template_id) {
  return http.get('/Supplier/IncrementService/singleSmsInfo', {
    sms_template_id
  })
}
// 获取批量短信信息
export function batchSmsInfo(sms_type) {
  return http.get('/Supplier/IncrementService/batchSmsInfo', { sms_type })
}
// 设置单个短信
export function setSingleSms(params) {
  return http.post('/Supplier/IncrementService/setSingleSms', params, true)
}
// 设置批量短信
export function setBatchSms(params) {
  return http.post('/Supplier/IncrementService/setBatchSms', params, true)
}
// 获取短信发送场景
export function getSmsTemplate() {
  return http.get('/Supplier/IncrementService/getSmsTemplate')
}
// 短信发送记录
export function smsRecord(params) {
  return http.post('/Supplier/IncrementService/smsRecord', params)
}

// 百融风控查询列表
export function getShopRiskCreditList(params) {
  return http.post('/Supplier/IncrementService/getShopRiskCreditList', params)
}
// 查看店铺百融风控开启状态
export function getShopRiskCreditStuatus() {
  return http.get('/Supplier/IncrementService/getShopRiskCreditStuatus')
}
// 获取百融风控购买记录
export function getRiskCreditBuyLog(params) {
  return http.get('/Supplier/IncrementService/getRiskCreditBuyLog', params)
}
// 百融风控自动充值
export function riskCreditAutoRecharge(params) {
  return http.get('/Supplier/IncrementService/riskCreditAutoRecharge', params, true)
}

// 百融风控单条
export function getRiskCredit(params) {
  return http.post('/Supplier/IncrementService/getRiskCredit', params)
}

// 查询百融风控
export function checkRiskCredit(params) {
  return http.get('/Supplier/IncrementService/checkRiskCredit', params)
}

// 查询征信列表
export function rickWongList(params) {
  return http.get('/Supplier/IncrementService/rickWongList', params)
}

// 提交征信订单请求
export function Levinwang(params) {
  return http.post('/Supplier/IncrementService/Levinwang', params)
}

// 征信开户
export function Levinwang_open(params) {
  return http.post('/Supplier/IncrementService/Levinwang_open', params)
}

// 征信还款
export function Levinwang_Repay(params) {
  return http.post('/Supplier/IncrementService/Levinwang_Repay', params)
}

// 征信结清
export function Levinwang_Over(params) {
  return http.post('/Supplier/IncrementService/Levinwang_Over', params)
}

// 征信审核申请
export function Levinwang_audit(params) {
  return http.post('/Supplier/IncrementService/Levinwang_audit', params)
}

// 征信开户数据保存
export function Levinwang_save(params) {
  return http.post('/Supplier/IncrementService/Levinwang_save', params)
}

// 获取征信开户数据保存
export function Levinwang_saveGet(params) {
  return http.get('/Supplier/IncrementService/Levinwang_saveGet', params)
}

// 获取所有用户信息
export function getRealList(params) {
  return http.get('/Supplier/RealUserController/getRealList', params)
}

// 群发短信
export function sendAllUser(params) {
  return http.post('/Supplier/OrderController/SendAllUser', params)
}
